import request from '@/utils/request'
import {projectApiUrl} from '../config'

/**
 * 项目经理扣分项列表
 * @param parameter
 */
export function getPointsList(parameter){
  return request({
    url: projectApiUrl+'/project-manager-Penalties',
    method: 'get',
    params: parameter
  })
}


/**
 * 项目经理扣分项统计
 * @param
 */
export function getPointsTotal(data){
  return request({
    url: projectApiUrl+'/project-manager-Penalties/total',
    method: 'get',
    params:data
  })
}


/**
 * 项目经理扣分项新增
 * @param
 */
export function addPoints(data){
  return request({
    url: projectApiUrl+'/project-manager-Penalties/add',
    method: 'post',
    data:data
  })
}


/**
 * 项目经理扣分项编辑
 * @param
 */
export function editPoints(data){
  return request({
    url: projectApiUrl+'/project-manager-Penalties/edit',
    method: 'post',
    data:data
  })
}
/**
 * 项目经理扣分项编辑
 * @param
 */
export function getPoints(data){
  return request({
    url: projectApiUrl+'/project-manager-Penalties/points',
    method: 'get',
    params:data
  })
}




